package com.example.demo.mapper.user;


import com.example.demo.dto.user.reg.URegDto;
import com.example.demo.entity.user.Teacher;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:龙宝
 * Date:2023-03-31
 * Time:18:38
 */
@Mapper
public interface TeacherMapper {
    int reg(URegDto regDto);
    Teacher getTeacherById(@Param("teacher_id") Integer teacher_id);

    Teacher getTeacherByCardId(String card_id);
    //修改个人state以免多次恶意登录
    //更新state+unfreezingtime
    int upTeacherState(Teacher teacher);

    // 查询所有教师信息
    List<Teacher> getAllTeacher();



}
